a = [1,"上午","数字媒体技术与协作","网站运营与管理"]
b = [2,"上午","数字媒体技术与协作","毛概","下午","大英","晚上","网页设计与制作"]
c = [3,"晚上","Python"]
d = [4,"上午","大英","下午","网页设计与制作","散打","晚上","毛概"]
e = [5,"上午","API"]
riqi = input("请输入星期几")
riqi = int(riqi)
shijian = input("请输入时间(上午/下午/晚上)")
if riqi == a[0]:
    if shijian == a[1]:
        print(a[2],a[3])
    else:
        print("没课")

elif riqi ==b[0]:
    if shijian ==b[1]:
        print(b[2],b[3])
    elif shijian ==b[4]:
        print(b[5])
    elif shijian ==b[6]:
        print(b[7])
    else:
        print("没课")

elif riqi ==c[0]:
    if shijian == c[1]:
        print(c[2])
    else:
        print("没课")

elif riqi ==d[0]:
    if shijian ==d[1]:
        print(d[2],)
    elif shijian ==d[3]:
        print(d[4],d[5])
    elif shijian ==d[6]:
        print(d[7])
    else:
        print("没课")

elif riqi ==e[0]:
    if shijian == e[1]:
        print(e[2])
    else:
        print("没课")